<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>搜索框设计</title>
    <style>
        /* 搜索框容器样式 */
       .search-container {
            position: absolute;
            top: 10px;
            right: 10px;
            display: flex;
            align-items: center;
            background-color: #f4f4f4;
            border-radius: 8px;
            padding: 5px;
            box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.1);
        }

        /* 放大镜图标样式 */
       .search-icon {
            width: 24px;
            height: 24px;
            margin-right: 10px;
            fill: #666;
        }

        /* 输入框样式 */
       .search-input {
            border: none;
            outline: none;
            width: 200px;
            font-size: 16px;
        }
    </style>
</head>

<body>
    <div class="search-container">
        <svg class="search-icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
            <path d="M16.32 14.9l5.39 5.4a1 1 0 0 1-1.42 1.4l-5.38-5.38a8 8 0 1 1 1.41-1.41zM10 16a6 6 0 1 0 0-12 6 6 0 0 0 0 12z" />
        </svg>
        <input type="text" class="search-input" placeholder="搜索">
    </div>
</body>

</html>